import { useRoute, type RouteLocationNormalized } from 'vue-router'

export default {
  path: '/room',
  component: () => import('@/views/room/index.vue'),
  meta: { title: '问诊室' },
  beforeEnter(to: RouteLocationNormalized) {
    if (to.query.payResult === 'false') {
      return '/user/consult'
    }
  }
}
